package com.golxen.framework.common.server.game.cmd;


import com.golxen.framework.PBPacket.PBPacket;
import com.google.protobuf.Message;
import io.netty.channel.ChannelHandlerContext;

public interface Command {


	Tuple execute(ChannelHandlerContext ctx, PBPacket packet) throws Exception;

	class Tuple {
		public final Throwable e;
		public final Message m;

		public Tuple(Throwable e, Message m) {
			this.e = e;
			this.m = m;
		}
	}
}